package com.ning.farm_income_back.mapper;


import com.ning.farm_income_back.domain.Costs;
import com.ning.farm_income_back.dto.CostsDto;

import java.util.List;

/**
* @author DELL
* @description 针对表【costs】的数据库操作Mapper
* @createDate 2025-05-21 14:21:46
* @Entity generator.domain.Costs
*/
public interface CostsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Costs record);

    int insertSelective(Costs record);

    Costs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Costs record);

    int updateByPrimaryKey(Costs record);

    List<String> selectEveryYear(String startY, String endY);

    List<CostsDto> selectBy(CostsDto costDto);

    String selectTotalByYear(String year);
}
